package com.itheima01;

import java.util.HashSet;

public class hashset02 {
    public static void main(String[] args) {
        HashSet<Student> hs = new HashSet<>();
        hs.add(new Student("zhangsan", 13));
        hs.add(new Student("lisi", 14));
        hs.add(new Student("zhangsan", 13));
        hs.add(new Student("wangwu", 16));
        hs.forEach(c -> System.out.println(c));
    }
}
